Skip to content

Conversation

@wagnerjt
Copy link
Contributor

Proxy UI using PROXY_BASE_URL

Relevant issues

Handles #10761

Pre-Submission checklist

  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix
🧹 Refactoring

Changes

UI Proxy respecting the the PROXY_BASE_URL.

@vercel
Copy link

vercel bot commented May 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 3:18am

@CLAassistant
Copy link

CLAassistant commented May 23, 2025

CLA assistant check
All committers have signed the CLA.

const nextConfig = {
output: 'export',
basePath: process.env.UI_BASE_PATH || '/ui',
baseProxyUrl: process.env.PROXY_BASE_URL || '/',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @wagnerjt could you explain what happens when this value is set on nextconfig?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since our UI is rendered from the server as static html - how is this change used ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During the custom UI build process, nextjs will recognize if this environment variable is set and inject the variable.

Something like RUN UI_BASE_PATH=${UI_BASE_PATH} npm run build.

To be even more dynamic, we could make anl new endpoint on the python server that returns the env variables for the UI on startup. Would this be preferred?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

@github-actions
Copy link

github-actions bot commented Oct 9, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 9, 2025
@github-actions github-actions bot closed this Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants